package com.shop.front.request.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@ApiModel("openid注册请求参数")
@Data
public class OpenidRegisterReq {

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @ApiModelProperty(value = "短信验证码", required = true)
    @NotBlank(message = "短信验证码不能为空")
    private String smsCode;

    @ApiModelProperty(value = "推广码或推荐人手机号")
    private String recommendMobile;

    @ApiModelProperty(value = "微信openid")
    private String openid;

    @ApiModelProperty(value = "微信号")
    private String wechatId;

    @ApiModelProperty(value = "身份证号，不为空时，须与真实姓名一起提交")
    private String idNumber;

    @ApiModelProperty(value = "真实姓名，不为空时，须与身份证号一起提交")
    private String realityName;

}
